.class public Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;


# instance fields
.field private a:Lcom/waiqin365/lightapp/view/SearchView;

.field private b:Ljava/lang/String;

.field private c:Landroid/os/Handler;

.field private d:Landroid/widget/LinearLayout;

.field private e:Landroid/widget/TextView;

.field private f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

.field private g:Landroid/widget/LinearLayout;

.field private h:Z

.field private i:I

.field private j:Ljava/util/HashMap;

.field private k:Lcom/waiqin365/lightcrm/linkman/a/b;

.field private l:Ljava/util/ArrayList;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->h:Z

    const/4 v0, 0x1

    iput v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->i:I

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    return-object v0
.end method

.method static synthetic a(Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->b:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic b(Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;)I
    .locals 1

    iget v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->i:I

    return v0
.end method

.method static synthetic c(Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->l:Ljava/util/ArrayList;

    return-object v0
.end method

.method private c()V
    .locals 1

    new-instance v0, Lcom/waiqin365/lightcrm/linkman/l;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightcrm/linkman/l;-><init>(Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->c:Landroid/os/Handler;

    return-void
.end method

.method static synthetic d(Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;)Landroid/widget/LinearLayout;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->g:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method private d()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->b:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    invoke-virtual {p0}, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->b()V

    :cond_0
    return-void
.end method

.method static synthetic e(Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;)Ljava/util/HashMap;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->j:Ljava/util/HashMap;

    return-object v0
.end method

.method private e()V
    .locals 3

    const-string/jumbo v0, "input_method"

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/inputmethod/InputMethodManager;

    invoke-virtual {p0}, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->getCurrentFocus()Landroid/view/View;

    move-result-object v1

    if-eqz v1, :cond_0

    invoke-virtual {p0}, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->getCurrentFocus()Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getWindowToken()Landroid/os/IBinder;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z

    :cond_0
    return-void
.end method

.method static synthetic f(Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;)Landroid/widget/LinearLayout;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->d:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic g(Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;)Landroid/widget/TextView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->e:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic h(Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->b:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic i(Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;)Lcom/waiqin365/lightcrm/linkman/a/b;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->k:Lcom/waiqin365/lightcrm/linkman/a/b;

    return-object v0
.end method

.method static synthetic j(Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->d()V

    return-void
.end method

.method static synthetic k(Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->e()V

    return-void
.end method

.method static synthetic l(Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;)I
    .locals 2

    iget v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->i:I

    add-int/lit8 v1, v0, 0x1

    iput v1, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->i:I

    return v0
.end method


# virtual methods
.method public a()V
    .locals 2

    const v0, 0x7f0c0131

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/SearchView;

    iput-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->a:Lcom/waiqin365/lightapp/view/SearchView;

    iget-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->a:Lcom/waiqin365/lightapp/view/SearchView;

    new-instance v1, Lcom/waiqin365/lightcrm/linkman/m;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightcrm/linkman/m;-><init>(Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/SearchView;->setClearListener(Lcom/waiqin365/lightapp/view/hk;)V

    iget-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->a:Lcom/waiqin365/lightapp/view/SearchView;

    const v1, 0x7f0800ba

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/SearchView;->setHint(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->a:Lcom/waiqin365/lightapp/view/SearchView;

    new-instance v1, Lcom/waiqin365/lightcrm/linkman/n;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightcrm/linkman/n;-><init>(Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/SearchView;->setOnSearchKeyChangedListener(Lcom/waiqin365/lightapp/view/hl;)V

    iget-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->a:Lcom/waiqin365/lightapp/view/SearchView;

    new-instance v1, Lcom/waiqin365/lightcrm/linkman/o;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightcrm/linkman/o;-><init>(Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/SearchView;->setSearchListener(Lcom/waiqin365/lightapp/view/hm;)V

    const v0, 0x7f0c08d4

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->g:Landroid/widget/LinearLayout;

    const v0, 0x7f0c08d1

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->d:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->d:Landroid/widget/LinearLayout;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    const v0, 0x7f0c08d2

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->e:Landroid/widget/TextView;

    const v0, 0x7f0c08d3

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iput-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v0, Lcom/waiqin365/lightcrm/linkman/a/b;

    iget-object v1, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->l:Ljava/util/ArrayList;

    invoke-direct {v0, p0, v1}, Lcom/waiqin365/lightcrm/linkman/a/b;-><init>(Landroid/content/Context;Ljava/util/ArrayList;)V

    iput-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->k:Lcom/waiqin365/lightcrm/linkman/a/b;

    iget-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iget-object v1, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->k:Lcom/waiqin365/lightcrm/linkman/a/b;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setAdapter(Landroid/widget/BaseAdapter;)V

    iget-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->f()V

    iget-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v1, Lcom/waiqin365/lightcrm/linkman/p;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightcrm/linkman/p;-><init>(Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setonRefreshListener(Lcom/waiqin365/lightapp/dailyreport/view/z;)V

    iget-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v1, Lcom/waiqin365/lightcrm/linkman/r;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightcrm/linkman/r;-><init>(Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setonHistoryListener(Lcom/waiqin365/lightapp/dailyreport/view/aa;)V

    iget-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v1, Lcom/waiqin365/lightcrm/linkman/s;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightcrm/linkman/s;-><init>(Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v1, Lcom/waiqin365/lightcrm/linkman/t;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightcrm/linkman/t;-><init>(Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setCustomListviewOnScrollListener(Lcom/waiqin365/lightapp/dailyreport/view/y;)V

    return-void
.end method

.method public a(I)V
    .locals 4

    iput p1, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->i:I

    iget-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->j:Ljava/util/HashMap;

    const-string/jumbo v1, "currentPage"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->j:Ljava/util/HashMap;

    const-string/jumbo v1, "searchKey"

    iget-object v2, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->b:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    invoke-static {p0}, Lcom/waiqin365/base/db/offlinedata/d;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/d;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->j:Ljava/util/HashMap;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/offlinedata/d;->f(Ljava/util/HashMap;)Ljava/util/ArrayList;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->c:Landroid/os/Handler;

    invoke-virtual {v1}, Landroid/os/Handler;->obtainMessage()Landroid/os/Message;

    move-result-object v1

    const/16 v2, 0x3f2

    iput v2, v1, Landroid/os/Message;->what:I

    iput-object v0, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->c:Landroid/os/Handler;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    return-void
.end method

.method public b()V
    .locals 1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->h:Z

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->a(I)V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f03019f

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->setContentView(I)V

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->j:Ljava/util/HashMap;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->l:Ljava/util/ArrayList;

    invoke-direct {p0}, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->c()V

    invoke-virtual {p0}, Lcom/waiqin365/lightcrm/linkman/CMLinkManSearchActivity;->a()V

    return-void
.end method
